package com.bs.sc.mgr.user.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.bs.sc.mgr.user.dao.MgrUserDao;
import com.bs.sc.mgr.user.entity.MgrUser;
import com.bs.sc.mgr.user.service.MgrUserService;

@Service("mgrUserService")
public class MgrUserServiceImpl implements MgrUserService {

	@Autowired
	private MgrUserDao mgrUserDao;

	@Override
	public List<MgrUser> findByUserNameAndPassword(MgrUser user) {
		return mgrUserDao.findByUserNameAndPassword(user.getUserName(), user.getPassword());
	}

}
